home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1308.dms / var1308.adf / DNET2_10.LHA / DNet / Amiga / Sourcen.lha / dnet / globals.c < prev    next >
C/C++ Source or Header  |  1993-01-14  |  2KB  |  69 lines

  1.  
  2. /*
  3.  *  GLOBALS.C
  4.  *
  5.  *  DNET (c)Copyright 1988, Matthew Dillon, All Rights Reserved.
  6.  *
  7.  *    -restart/packet protocol
  8.  *    -dnet->amiga        (DNET.READ)
  9.  *    -amiga->dnet        (DNET.WRITE)
  10.  */
  11.  
  12. #include "dnet.h"
  13.  
  14. int Enable_Abort;
  15.  
  16. IOT Rto;        /*  Read-Timeout/reset         */
  17. IOT Wto;        /*  Write-Timeout/retry      */
  18. IOT Cto;        /*  1 second CD check / idle line*/
  19. PKT Pkts[9];        /*  data buffers for packets     */
  20. PKT *RPak[4] = { Pkts+0,Pkts+1,Pkts+2,Pkts+3 };
  21. PKT *WPak[4] = { Pkts+4,Pkts+5,Pkts+6,Pkts+7 };
  22. PORT *DNetPort;     /*  Remote Command/Control in        */
  23. PORT *IOSink;        /*  Return port for ALL IO        */
  24. PORT *IPCPort;        /*  IPC software control port        */
  25. CHAN Chan[MAXCHAN];    /*  Channels                */
  26. LIST TxList;        /*  For pending DNCMD_WRITE reqs.   */
  27.  
  28. ubyte Rto_act;
  29. ubyte Wto_act;
  30. ubyte Cto_act;
  31. ubyte Cd;        /*  Carrier Detect Status        */
  32. ubyte Mode7 = 1;
  33. uword WChan;        /*  Read and Write channels        */
  34. uword RChan;
  35. uword RPStart;
  36. uword WPStart;
  37. uword WPUsed;
  38. uword RState;
  39. uword Protocol;     /*  0=none 1=xonxoff 2=7wire        */
  40. short DDebug;
  41. short PDebug;
  42. ubyte Restart;        /*  Network restart mode        */
  43. ubyte OnLine;        /*  Network online            */
  44. ubyte Quit;        /*  Quit immediately            */
  45. short AutoAnswer = 0;    /*  Security Enable            */
  46. short DialOut = 1;    /*  Security Enable for DialOut     */
  47. short AutoHangup = 0;    /*  On carrier lost (-a opt)            */
  48. short Master8;
  49. short NetworkNum;
  50. short Getty;        /*  begun from a getty            */
  51. ulong NumCon;        /*  # of connections currently active    */
  52.             /*     in CHAN_ROPEN/LOPEN/OPEN/CLOSE    */
  53. ulong WTimeoutVal;
  54. ulong RTimeoutVal;
  55. long Baud;
  56. long TOBaud;
  57. char *HostName = "";
  58.  
  59. /*
  60.  *  Status Info
  61.  */
  62.  
  63. long    BytesOut, PacketsOut, PacketsResent;
  64. long    BytesIn , PacketsIn , PacketsNakd;
  65. long    Packets6In, Packets7In, Packets8In;
  66. long    Packets6Out, Packets7Out, Packets8Out;
  67. long    GarbageIn;
  68.  
  69.